package com.medical.service.impl;

import com.medical.entity.PayEntity;
import com.medical.mapper.PayMapper;
import com.medical.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PayServiceImpl implements PayService {
    @Autowired
    PayMapper payMapper;

    @Override
    public List<PayEntity> selectByUserName(String userName) {
        List<PayEntity> payEntityList = payMapper.selectByUserName(userName);
        if (payEntityList != null) {
            return payEntityList;
        } else {
            return null;
        }
    }
}
